Coldfusion Snippet: Bugtracking Methods
Posted by
Luis Majano
Sep 08, 2005 00:00:00 UTC
This entry is for those developers trying to standardize their application development with a bugtracking module. I personally use a bugtracking.cfc and extend it on all my model components. The following snippet is the actual logError method that I use.
The method is self explanatory. You send in some ErrorDetails, the cfcatch structure, and application(cfc) name. The method will then construct a variable using cfsavecontent with the bug report and creates a LogFile in the coldfusion administrator. It then finally sends the bugreport to the email list that you can provide in the constructor of the cfc.
<cfset this.bugEmails = "[email protected],[email protected]">
Tags: ColdFusion